package cn.community.care.module.system.controller.admin.msg.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.community.care.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.community.care.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 评论分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class MsgPageReqVO extends PageParam {

    @Schema(description = "评论人ID", example = "495")
    private Long commenterId;

    @Schema(description = "评论内容")
    private String content;

    @Schema(description = "父评论ID", example = "7923")
    private Long parentCommentId;

    @Schema(description = "文章ID", example = "10491")
    private Long articleId;

    @Schema(description = "评论喜欢数量", example = "19299")
    private Integer likesCount;

    @Schema(description = "评论状态（1：启用，0：禁用）", example = "2")
    private Integer status;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;


    private String commenterAvatar;
    private String commenterName;

}